﻿@{
    Layout = "~/Views/Shared/_Default.cshtml";
    ViewBag.PageTitle = T(Res.Name("Title"), JDM.String(Model.Account.Username));
    ViewBag.PageHistory = true;
}

@section Sidebar
{
    @{
        Html.RenderPartial("_Overview");
    }
}
<div class="box">
    <section>
    @{
        var attrShortBio = (Model.Account.Attributes as IEnumerable<dynamic>)
            .Where(x => JDM.String(x.Key) == Par.In("WebPortal").Of("Profile").Name("ShortBio"))
            .Select(x => (string)JDM.String(x.Value))
            .SingleOrDefault();
        if(!String.IsNullOrWhiteSpace(attrShortBio))
        {
            <div class="html">
                <p>@attrShortBio</p>
            </div>
        }
        Html.RenderAction(Loc.Act("_Activity").Localized().Set(new
        {
            id = JDM.Int32(Model.Account.EntityID)
        }));
    }
    </section>
</div>
